package com.kuyun.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.kuyun.entity.FunsType;

public interface FunsTypeMapper {

	// 查询所有趣事类型
	List<FunsType> findAllFunsType() throws Exception;

	// 查询单个趣事类型
	FunsType findFunsType(@Param(value = "id") Integer id) throws Exception;

	// 查询是否存在趣事类型名称
	FunsType compareFunsType(@Param(value = "type") String type) throws Exception;

	// 删除单个趣事类型
	int delFunsType(@Param(value = "id") Integer id) throws Exception;

	// 删除部分趣事类型
	int delSomeFunsType(Map<String, Object> paramMap);

	// 增加单个趣事类型
	int insFunsType(@Param(value = "funsType") FunsType funsType) throws Exception;

	// 修改单个趣事类型
	int queryFunsType(@Param(value = "funsType") FunsType funsType) throws Exception;

}
